! This is an example holiday file for HOL. 
! All text between an exclamation mark and the end of line is a comment.
REM "REM" can be used instead of "!"

! Put an entry called "Christmas Day" on December 25th
"Christmas Day" = fix(12, 25);       ! fix(month, day-in-month)

! Set the default style to italic. 
style = italic; ! Other styles are "bold", "underline", "normal"

! Set a default year symbol for the year view
year_symbol = "H";                   ! One character within quotes
"New Year's Day" = fix(1, 1);        ! January 1st 


! You can use different values for style and/or year_symbol for one holiday.
! Put the directives within curly brackets:
{
   YEAR_SYMBOL = "A";               ! Only for this holiday
   "St. Valentines Day" = FIX(2,2); ! Only one holiday within brackets
   STYLE = ITALIC,BOLD,UNDERLINE;   ! Only for this holiday
}
! The following will be bold with year_symbol "H" as before.

! EASTER is a special keyword for Easter Sunday
! Save the date as alias E for convenience (and speed).
{alias = E;                         ! Always within brackets
"Easter" = easter;}
"Good Friday" = e - 2 ;             ! Two days before easter Sunday
"Easter Monday"=e+1;                ! One day after easter Sunday

! Hebrew fixed date. '%HY' will be replaced by the Hebrew year
"Rosh HaShanah %hy" = hfix(7,1);    ! hfix(hebrew-month, day-in-month)

! Islamic fixed date. '%IY' will be replaced by the Islamic year.
"Islamic New Year %iy" = ifix(1, 1);


! The defaults can be changed
year_symbol = "a";
style = normal;

! Midsummer day is on the 1st Saturday in June after the 20th
"Midsommardagen" = float(6,         ! June
                         6,         ! Saturday (Sunday = 0)
                         1,         ! 1st (negative would be last in month)
                         20);       ! after the 20th (optional)

"Mother's Day" = float(5, 0 , 2);   ! Second Sunday in May

year_symbol = "";                   ! No year symbol
! The time report is due on the last working day of February
"Tidrapporten!" = last(2)           ! Last day of February
                  doneif(weekday(1) ! Stop here if it's a Monday 
                      or weekday(2) ! Tuesday,
                      or weekday(3) ! Wednesday
                      or weekday(4) ! Thursday
                      or weekday(5))! or Friday
                  float(2, 5, -1);  ! Otherwise get the last Friday instead

"Aniversario San Mart¡n" = 
                 fix(8, 17)         ! Usually on August 17
                 doneif(weekday(6)  ! Check that it's a Saturday
                     or weekday(0)  ! or Sunday
                     or weekday(1)) ! or Monday
                 float(8, 1, 1, 15);! Otherwise get the Monday closest
                                    ! to Aug 17 (first after the 15th)

